// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import VueRouter from 'vue-router'
import Axios from 'axios'
import Layout from './components/layout'
import Category from './components/category'
import AblumDetail from './components/ablumDetail'

Vue.config.productionTip = false
Vue.use(VueRouter)
Vue.prototype.$http=Axios
/* eslint-disable no-new */
const router=new VueRouter({
	routes:[
      {
      	path:'/',
      	component:Layout
      },
      {
        path:'/category',
        component:Category
      },
      {
        path:'/ablumDetail',
        component:AblumDetail
      }
	]
})
new Vue({
  el: '#app',
  router,
  template: '<App/>',
  components: { App }
})
